<!DOCTYPE HTML><html>
<head>
<? echo $h->meta($title, $kwd, $dpn); ?>
<? require_once("lib.php"); ?>
</head>
<body id="new_products">
<? include_once("header.php"); ?>
<div id="wrap">
		<div class="breadcrumb">
			<a href="./"><?=WEB_INDEX_PAGE?></a> &gt; <span><?=$sort_name?></span>
		</div><!--breadcrumb end-->
	<div id="" class="left w720">
			<div class="">
				<div class="h2pros">
					<h2><?=$sort_name?></h2>
				</div>
				<ul class="pros">
					<?
						$str=''; $k=1;
						foreach($info as $val){
							$tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
							$tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
							$tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
							//$tem_price=round($val['price']*$currency_rate,2);
							$tem_price=price($val).discount($val);
							$current=''; if($k%4==1) $current=' d ';
							$str.='<li class="pros_li'.$current.'">
						<div class="pro_box">
							<div class="pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_SMALL_PIC_WIDTH.'" height="'.PRODUCT_SMALL_PIC_HEIGHT.'" /></a></div>
								<div class="price"><span><span>'.$currency_sign.'</span>'.$tem_price.'</span></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
							</div>
						</div>
					</li>';
							if($k%4==0) $str.='<li class="pro_lace"></li>';
							$k++;
						}
						$str.='<div class="clear"></div>';
						echo $str;
						echo echo_page($page, $pages, $url.'-p',$lang_id);
					?>
				</ul>
				<div class="clear"></div>
			</div><!--. featured product-->
	</div><!--# featured_and_ad_right-->
		<div id="" class="w220 right">
			<div class="side_box">
				<div class="side_title"><h3><?=WEB_HOT_ITEMS?></h3></div>
				<div class="side_boxer">
					<ul class="side_pros">
						<?
							$str='';
							foreach($arr_hot as $val){
								$tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
								$tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
								$tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
								$tem_price=price($val).discount($val);
								$curr=''; if($k%4==0) $curr=' d ';
								$str.='<li class="side_pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" height="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" /></a></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
								<div class="price red"><strong><span>'.$currency_sign.'</span>'.$tem_price.'</strong></div>
								<div class="clear"></div>
							</li>';
							}
							echo $str;
						?>
					</ul>
				</div>
			</div>
			<div class="px20"></div>
			<? if($has_history){ ?>
			<div class="side_box history">
				<div class="side_title"><h3><?=WEB_RECENTLY_VIEWED?></h3><a class="hand right clear_his" onclick="history_clear();">&nbsp;</a></div>
				<div class="side_boxer">
					<ul class="side_pros">
						<?
							$str='';
							foreach($arr_history as $val){
								$tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
								$tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
								$tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
								$tem_price=price($val).discount($val);
								$curr=''; if($k%4==0) $curr=' d ';
								$str.='<li class="side_pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" height="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" /></a></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
								<div class="price red"><strong><span>'.$currency_sign.'</span>'.$tem_price.'</strong></div>
								<div class="clear"></div>
							</li>';
							}
							echo $str;
						?>
					</ul>
				</div>
			</div>
			<? } ?>
		</div><!--right-->
		<div class="clear"></div>
	<div class="px20"></div>
	<div class="clear"></div>
</div>
<? include("footer.php"); ?>
</body>
</html>